/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bu.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author ThinkGem
 * @version 2018-08-27
 */
public class BuIncrease extends DataEntity<BuIncrease> {
	
	private static final long serialVersionUID = 1L;
	private String increasePreffix;		// 自增前缀
	private String increaseSuffix;		// 自增后缀
	
	public BuIncrease() {
		super();
	}

	public BuIncrease(String id){
		super(id);
	}

	@Length(min=0, max=64, message="自增前缀长度必须介于 0 和 64 之间")
	public String getIncreasePreffix() {
		return increasePreffix;
	}

	public void setIncreasePreffix(String increasePreffix) {
		this.increasePreffix = increasePreffix;
	}
	
	@Length(min=0, max=11, message="自增后缀长度必须介于 0 和 11 之间")
	public String getIncreaseSuffix() {
		return increaseSuffix;
	}

	public void setIncreaseSuffix(String increaseSuffix) {
		this.increaseSuffix = increaseSuffix;
	}
	
}